// 使用MayBe重写ex4，不要有if语句
// let  ex4 = function(n){
//     if(n){
//         return parseInt (n)
//     }
// }
const fp = require('lodash/fp');
const {Maybe, Container} = require('./support');
let ex4 = function(n) {
    return Maybe.of(n).map(parseInt)._value
}
console.log(ex4('100aaaa'))